<?php

declare(strict_types=1);

namespace App\Websocket;

class GlobalContext
{
    protected static array $globalContext = [];

    public static function setContext($key, $value): void
    {
        self::$globalContext[$key] = $value;
    }

    public static function getContext($key)
    {
        return self::$globalContext[$key] ?? null;
    }
}
